package schedulingSystem;

import java.util.*;

import java.sql.Time;
import java.util.Date;

public class Timetable {
	private String _subject;
	private String _reportingRoom;
	private String _Date;
	private int _startTime;
	private int _duration;
	private int _groupSize;
	private ArrayList<ArrayList<Group>> _Schedule;

	public Timetable() {
		this._subject = null;
		this._reportingRoom = null;
		this._Date = null;

		_Schedule = new ArrayList<ArrayList<Group>>(); // For one timeslot only

		this._startTime = 0;
		this._duration = 0;
		this._groupSize = 0;
	}

	public String getReportingRoom() {
		return this._reportingRoom;
	}

	public String getDate() {
		return this._Date;
	}

	public ArrayList<ArrayList<Group>> getSchedule(int _examTime,
			int _roomNumber) {
		ArrayList<Group> timeslot = _Schedule.get(0);
		Iterator<Group> iter = timeslot.iterator();

		while (iter.hasNext()) {
			Group g = iter.next();
		}
		return _Schedule;
	}

	public void setReportingRoom(String _reportingRoom) {
		this._reportingRoom = _reportingRoom;
	}

	public void setDate(String _Date) {
		this._Date = _Date;
	}

	public void setSchedule(int _examTime, int _roomNumber, Group group) {
		// this._Schedule[_examTime][_roomNumber] = group;
	}
}
